package me.yangteng.zhihudaily.util;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

/**
 * Created by MorenYang on 2017/12/26.
 */

public class PreferenceLoader {
  private SharedPreferences preferences;

  public PreferenceLoader(Context context) {
    preferences = PreferenceManager.getDefaultSharedPreferences(context);
  }

  public SharedPreferences getPreferences() {
    return preferences;
  }

  public boolean isEnableAutoCached() {
    return preferences.getBoolean("enableAutoCached", false);
  }
}
